import Vue from 'vue'
import App from './App.vue'
import router from './router'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts //5.24 by manyuan
import axios from "axios";
Vue.prototype.$axios = axios //6.1 by manyuan
import VModal from 'vue-js-modal/dist/index.nocss.js'
import 'vue-js-modal/dist/styles.css' //6.3 by manyuan
import IdentifyCode from './components/modal/IdentifyCode'
Vue.component('s-identify', IdentifyCode)
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI); //6.12 by manyuan
// 全局引入global
import global from './global/global'
Vue.prototype.$global = global
import Storage from 'vue-ls'
import progress from './components/progress'
// vue-ls 的配置
const storageOptions = {
  namespace: 'vue_',   // key 键的前缀（随便起）
  name: 'ls',          // 变量名称（随便起） 使用方式：Vue.变量名称 或 this.$变量名称
  storage: 'local'     // 作用范围：local、session、memory
}
Vue.use(Storage, storageOptions)//6.15 by manyuan
Vue.prototype.$progress = progress
import VueLazyload from "vue-lazyload";

Vue.use(VueLazyload);
import 'bootstrap/scss/bootstrap.scss'
import 'animate.css'
import 'vue-slick-carousel/dist/vue-slick-carousel.css'
import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css'
import 'vue-cool-lightbox/dist/vue-cool-lightbox.min.css'
import './assets/scss/style.scss'
import 'bootstrap'

import CoolLightBox from 'vue-cool-lightbox'
import VueScrollActive from 'vue-scrollactive'
import AOS from 'aos'
import 'aos/dist/aos.css'
import VueTypedJs from 'vue-typed-js'

import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

Vue.config.productionTip = false
Vue.use(CoolLightBox)
Vue.use(VueScrollActive)
Vue.use(VueTypedJs)
Vue.use(VModal)

new Vue({
  axios,
  router,
  created () {
    AOS.init({
      duration: 800,
      once: true,
    })
  },
  render: h => h(App)
}).$mount('#app')
